import request from '@/utils/request'
import type { LoginParams } from './type'

export function fetchLoginApi(data: LoginParams): Promise<ResponseData> {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}

export function fetchGetUserInfoApi(): Promise<ResponseData> {
  return request({
    url: '/api/user/info',
    method: 'get'
  })
}
